import request from '@/utils/request'

// 查询帮助与反馈列表
export function listBack(query) {
  return request({
    url: '/app/back/list',
    method: 'get',
    params: query
  })
}

// 查询帮助与反馈详细
export function getBack(id) {
  return request({
    url: '/app/back/' + id,
    method: 'get'
  })
}

// 新增帮助与反馈
export function addBack(data) {
  return request({
    url: '/app/back',
    method: 'post',
    data: data
  })
}

// 修改帮助与反馈
export function updateBack(data) {
  return request({
    url: '/app/back',
    method: 'put',
    data: data
  })
}

// 删除帮助与反馈
export function delBack(id) {
  return request({
    url: '/app/back/' + id,
    method: 'delete'
  })
}
